package com.uetoken.cn.activity;

import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.qmuiteam.qmui.util.QMUIStatusBarHelper;
import com.qmuiteam.qmui.widget.QMUITopBar;
import com.uetoken.cn.R;
import com.uetoken.cn.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

public class DepositActivity extends BaseActivity {

    @BindView(R.id.topbar)
    QMUITopBar mTopbar;
    @BindView(R.id.reciprocalAccountNumberTv)
    TextView reciprocalAccountNumberTv;
    @BindView(R.id.accountNumberEt)
    EditText mAccountNumberEt;
    @BindView(R.id.reciprocalAccountNumberLayout)
    LinearLayout reciprocalAccountNumberLayout;
    @BindView(R.id.line1)
    View line1;
    @BindView(R.id.amountEnteredTv)
    TextView amountEnteredTv;
    @BindView(R.id.amountEv)
    EditText mAmountEv;
    @BindView(R.id.topLayout)
    LinearLayout topLayout;
    @BindView(R.id.DPBalanceTv)
    TextView DPBalanceTv;
    @BindView(R.id.DPBalanceValTv)
    TextView DPBalanceValTv;
    @BindView(R.id.DPBalanceTvLayout)
    LinearLayout DPBalanceTvLayout;
    @BindView(R.id.line2)
    View line2;
    @BindView(R.id.DPInventoryTv)
    TextView DPInventoryTv;
    @BindView(R.id.DPInventoryValTv)
    TextView DPInventoryValTv;
    @BindView(R.id.middleLayout)
    LinearLayout middleLayout;
    @BindView(R.id.DPTakeOutTv)
    TextView DPTakeOutTv;
    @BindView(R.id.DPTakeOutEv)
    EditText DPTakeOutEv;
    @BindView(R.id.bottomLayout)
    LinearLayout bottomLayout;
    @BindView(R.id.takeOutExplainTv)
    TextView takeOutExplainTv;
    @BindView(R.id.confirmTransferMoneyTv)
    Button confirmTransferMoneyTv;

    @Override
    public int getLayoutId() {
        return R.layout.activity_deposit;
    }

    @Override
    public void initView() {
        // 沉浸式状态栏
        QMUIStatusBarHelper.translucent(this);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            QMUIStatusBarHelper.setStatusBarLightMode(this);
        }
        ButterKnife.bind(this);

        initTopBar();
        mAccountNumberEt.setCursorVisible(false);
        mAmountEv.setCursorVisible(false);
    }

    @Override
    public void initData() {

    }

    @Override
    public void init() {

    }

    private void initTopBar() {
        mTopbar.setTitle(R.string.purchase_details_title);
        mTopbar.addLeftImageButton(R.drawable.ic_back, R.id.qmui_topbar_item_left_back).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }
}
